<template>
  <div class="section">
    <!--  <p class="title"><span>资深讲师</span><span>更多</span></p>-->
      <div class="card-list">
      <div class="card" @click="gotoDetail(item.id,item)">
        <div class="avatar-box"><img :src="item.avatar" alt="" /></div>
        <div class="info">
          <p>{{ item.real_name }}</p>
          <p>{{ item.introduction }}</p>
        </div>
      </div>
  </div>
  </div>
</template>

<script>
export default {
  props: ["item"],
  data() {
    return {
      list: [],
    };
  },
  mounted() {
    // console.log(this.item);
  },
  methods: {
    gotoDetail(id,item){
      // console.log(item);
      this.$emit("gotoDetail",id,item)
    }
  },
  components: {},
};
</script>

<style scoped lang="scss">
.section {
  width: 100%;
  background-color: #f7f8fa;
  .title {
    display: flex;
    justify-content: space-between;
    padding: 0 1.6875rem;
    font-size: 1rem;
    color: #595959;
    font-weight: 500;
    &::before {
      margin-top: .2375rem;
      position: absolute;
      content: "";
      left: 6.4px;
      width: 1.28px;
      height: 6.8267px;
      background: #e60012;
    }
    &::after {
      margin-top: .2125rem;
      position: absolute;
      content: "";
      right: 6.4px;
      width: 3.84px;
      height: 5.9733px;
      background: url()
        no-repeat;
      background-size: 100% 100%;
    }
    span {
      font-size: .875rem;
    }
  } 
  .card-list {
     padding: 1.25rem .625rem 0;
    .card {
      padding: 1.25rem;
      background-color: white;
      border-radius: .75rem;
      display: flex;
      align-items: center;
      height: 5.0625rem;
      .avatar-box {
        margin-right: .75rem;
        height: 3.1875rem;
        display: flex;
        align-items: center;
        img {
          width: 2.5rem;
          height: 2.5rem;
          border-radius: 50%;
        }
      }
      .info {
        display: flex;
        flex-direction: column;
        p {
          &:first-child {
            margin-bottom: .3125rem;
            font-size: .9375rem;
          }
          &:last-child {
            color: #8c8c8c;
          }
        }
      }
    }
  }
}
</style>